package com.mytest.provider.es.utils;


import cn.hutool.db.PageResult;
import com.myrest.provider.poi.work.entities.user.ESUser;
import com.myrest.provider.poi.work.entities.user.NickName;
import com.myrest.provider.poi.work.entities.user.Sex;

import java.util.List;
import java.util.Map;


/**
 * 搜索结果
 */
public class SearchResult extends PageResult<ESUser> {
    private List<Sex> Sexs;

    private List<NickName> NickNames;

    public SearchResult(Integer totalPage, Integer totalsize, Integer total,
                        List<Sex> Sexs, List<NickName> NickNames,
                        List<Map<String,Object>> specs) {
        super(totalPage, totalsize, total);
        this.Sexs = Sexs;
        this.NickNames = NickNames;
        this.specs = specs;
    }


    /**
     * 规格参数过滤条件
     */
    private List<Map<String,Object>> specs;

    public List<Sex> getCategories() {
        return Sexs;
    }

    public void setCategories(List<Sex> categories) {
        this.Sexs = Sexs;
    }

    public List<NickName> getBrands() {
        return NickNames;
    }

    public void setBrands(List<NickName> brands) {
        this.NickNames = NickNames;
    }

    public List<Map<String, Object>> getSpecs() {
        return specs;
    }

    public void setSpecs(List<Map<String, Object>> specs) {
        this.specs = specs;
    }
}
